<?php

defined("_JEXEC") or die("Restricted access");

jimport("joomla.application.conponent.model");
//hello model
Class helloworldModelhelloworld extends JModel
{
    function getHello()
    {
        $db = JFactory::getDbo();
        $query = 'select * from helloworld';
        $db->setQuery($query);
	//return $db;
        $kq = $db->loadObjectList();
	
        return $kq;
    }
}
?>
